package com.lmk.t01;

import java.io.File;

public class Test02 {
    public static void main(String[] args) {
        Thread t2=new Thread(()->
        {
            for (int i = 0; i <20 ; i++) {
                System.out.println("码农1号搬砖"+i);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        Thread t1=new Thread(()->
        {
            for (int i = 0; i <20 ; i++) {
                if(i>4) {

                }
                System.out.println("码农二号搬砖"+i);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
                );
        t1.start();
        t2.start();
    }
}
